cqjs.component('integerField', {
    template: `
    <el-input-number
        style='width:100%'
        v-model="data.data[$props.field.name]"
        @change="handleChange"
        precision="0"
        :placeholder="$props.placeholder"/>
    `,
    props: ['field', 'data', 'placeholder'],
    methods: {
        handleChange(v) {
            this.data.dirty[this.field.name] = v;
        }
    }
});